//===============================================================================
// Microsoft patterns & practices Enterprise Library Contribution
// Query Application Block
//===============================================================================

using Microsoft.Practices.EnterpriseLibrary.Common.Instrumentation;

namespace EntLibContrib.Query.Instrumentation
{
	/// <summary>
	/// Base class for resource WMI events.
	/// </summary>
	public abstract class QueryEvent : BaseWmiEvent
	{
		#region Fields
		private string instanceName;
		#endregion

		#region Properties
		/// <summary>
		/// Gets the name of the <see cref="IQuery"/> this event applies on.
		/// </summary>
		public string InstanceName
		{
			get { return instanceName; }
		}
		#endregion

		#region Construction
		/// <summary>
		/// Initializes a new instance of the <see cref="QueryEvent"/> class.
		/// </summary>
		/// <param name="instanceName">name of the <see cref="IQuery"/> this event applies on.</param>
		protected QueryEvent (string instanceName)
		{
			this.instanceName = instanceName;
		}
		#endregion
	}
}